package implementation;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Random;

public enum RPSEnum {
	ROCK,
	PAPER,
	SCISSORS;

	//private static final List<RPSEnum> VALUES = Collections.unmodifiableList(Arrays.asList(values()));
	//private static final int SIZE = VALUES.size();
	//private static final Random RANDOM = new Random();
	
	public static RPSEnum random() {
		Random random = new Random();
        return values()[random.nextInt(values().length)];
		//return VALUES.get(RANDOM.nextInt(SIZE));
	}
}
